 
 <div class="m_rightcon">
   
   <!--产品购买记录-->
   <div class="buyrecord">
     <h3 class="mem_title yellow_title">产品购买记录</h3>
     <div class="search_box">
       <div class="search_menu">
         <div class="timeselect">
           <div class="select-lay">
               <span>年</span>
                 <select name="">
                    <option>2015</option>
                    <option>2014</option>
                    <option>2015</option>
                    <option>2016</option>
                    <option>2017</option>
                    <option>2018</option>
                 </select>
            </div>
           <div class="select-lay">
               <span>月</span> 
                 <select name="">
                    <option>1</option>
                    <option>2</option>
                    <option>3</option>
                    <option>4</option>
                    <option>5</option>
                    <option>6</option>
                    <option>7</option>
                    <option>8</option>
                    <option>9</option>
                    <option>10</option>
                    <option>11</option>
                    <option>12</option>
                 </select>
            </div>
         </div>
         <div class="lockdate-selector">
         锁定期：
         <a href="{:U('User/Order/record')}"{if !$month}class="yellowfont"{/if}>全部</a>       
         <a href="{:U('User/Order/record?month=3')}" {if $month==3}class="yellowfont"{/if}>3个月</a>
         <a href="{:U('User/Order/record?month=6')}" {if $month==6}class="yellowfont"{/if}>6个月</a>
         <a href="{:U('User/Order/record?month=9')}" {if $month==9}class="yellowfont"{/if}>9个月</a>
         <a href="{:U('User/Order/record?month=12')}" {if $month==12}class="yellowfont"{/if}>12个月</a>
         </div>
       </div>
       <div class="recordform">
         <table width="100%" border="0" cellspacing="0" cellpadding="0" class="formtable">
          <thead>
              <tr>
                <td width="10%">日期</td>
                <td width="10%">产品名</td>
                <td width="20%">锁定期</td>
                <td width="10%">购买份额</td>
                <td width="15%">到期日</td>
                <td width="15%">预计收益</td>
              </tr>
          </thead>
          <tbody>
               <volist name="list" id="r" key='ni'>
               <tr>
                <td>{$r['add_time']|todate=###,"Y-m-d"}</td>
                <td>{$r['product_name']}</td>
                <td>{if $r['regulartime']}{$r['regulartime']}个月{else}无{/if}</td>
                <td>{$r['number']}</td>
                <td style="width:130px;">{if $r['ordertype']==2}{$r['incometime']|todate=###,"Y-m-d"}{else}每日自动结算{/if}</td>
                <td class="redfont">{$r['income']}</td>
              </tr>
          </volist>
          </tbody>
        </table>
       </div>
     </div>
   </div>
  
   
                                                                                                                                                                                                                                                                                                                                                                                                                                                   